<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"  %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML >
<html lang="en">
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<title>薪酬标准管理.jsp</title>


<script type="text/javascript" src="jia/js/jquery-1.8.3.js"></script>

<link rel="stylesheet" href="jia/css/cal.css"  type="text/css" />
<script src="jia/js/cal.js" type="text/javascript" charset="gbk"></script>




<script type="text/javascript">
	$(function(){
		
		$("table tr:odd").css("background-color","#FFFFFF");
		
		$("#sel_d2").click(function(){
                var v=$("#rilier2").val();
            	$("#start").val(v);
            				
        });
                		
        $("#sel_d3").click(function(){
                var v=$("#rilier3").val();
            	$("#end").val(v);
            				
         });
		
	});
</script>

<style type="text/css">
	#h111{margin-top: 12px;font-size: 14px;margin-left: 22px;}
	#h111 ul{overflow:hidden}
	#h111 ul li{float:left}
	
	#h112{margin-top: 40px;font-size: 14px;margin-left: 22px;}
	#h112 ul{overflow:hidden}
	#h112 ul li{float:left;padding-right: 13px;}
	#h112 ul li #sel_1{width: 100px;height: 19px;}
	
	#h113{margin-top: 20px;margin-left: 27px;}
	

	

	#h114{margin-left: 27px;margin-top: 14px;font-size: 14px;text-align: center;}
	#h114 .h1141{width:184px;}
	#h114 .h1142{width:223px;}
	#h114 .h1143{width:114px;}
	#h114 .h1144{width:117px;}
	#h114 .h1145{width:158px;}
	
	#addPlane{background-image:url(jia/image/peixunjihua/styled_button_u233.png);width: 95px;
		height: 24px;border: none;color: white;}
	table{border-collapse:collapse;border: none; }	
	table tr td{border: solid 1px #CCCCCC;}
		#page li{float: left;padding-left: 5px;}
	
	#h113 li{float: left;overflow: hidden;margin-left: 10px;}
</style>

</head>

<body>
	<div id=all
		style="width:1050px ;height: 2000px;background-color: #C9C9C9;margin: 0 auto;position:relative;top:30px;">
		<div id="header"
			style="width: 1030px; height:100px;position:absolute;left: 10px;top:0px;background-color:white;">
			<%@ include file="header.jsp"%>
		</div>
		<div id="left"
			style="height: 1000px;width: 200px; position:absolute;left: 10px;top:100px;background-color:white;">
			<%@ include file="left_xin1.jsp"%>
		</div>
		<div id="right"
			style="height: 1000px;width: 810px; ;position:absolute;left: 230px;top:100px;
			background-color:#F4F4F4;">
			<div id="h11" style="width:782px;">
            	<div id="h111">
                	<ul>
                    	<li><a>薪酬管理</a></li>
                        <li>>></li>
                        <li><a href="jia/salaryStandardManage.jsp">薪酬标准管理</a></li>
                    </ul>
                </div>
                <div id="h112">
                	<form action="jia/findXinchoubiaozhunByCondition.action" method="post">
                        <ul>
                        	
                            <li>薪酬标准编号:</li>
                            <li><input type="text" id="sel_1" name="code"/></li>
                            <li>审核状态:</li>
                            <li>
                                <select name="status">
                                    <option value="0">--请选择--</option>
                                    <option value="1">起草</option>
                                    <option value="2">审核中</option>
                                    <option value="3">审核通过</option>
                                    <option value="4">驳回</option>
                                </select>
                            </li>
                            <li style="">登记时间:</li>
                            <li><%@ include file="calendar2.jsp"%></li>
                            <li style="margin-left: 100px;">到</li>
                            <li><%@ include file="calendar3.jsp"%></li>
                             <input type="hidden" id="start" name="starttime"/>
                            <input type="hidden" id="end" name="end"/>
                            
                        </ul>
                      
                </div>
                <div id="h113">
                <ul>
                	<li>
                		<input type="button" name="" id="addPlane" value="标准登记" onclick="window.location.href='jia/salaryStandardRegister.jsp'"/></li>
                	<li>
                	<input type="submit" name="" value="查询"  id="sele" style="width: 54px;height: 24px;
                            	background:url(jia/image/peixunjihua/styled_button_u233_mouseDown.png) no-repeat;border: 
                            	none;color: white;"/>
                    </li>
                </ul>
                </div>
                </form>
                <div id="h114" style="clear: both;margin-top: 60px;">
                	<table>
                    	<tr style="font-weight: bolder;">
                        	<td class="h1141">薪酬标准编码</td>
                            <td class="h1142">薪酬标准名称</td>
                            <td class="h1143">审核状态</td>
                            <td class="h1144">登记时间</td>
                            <td class="h1145">操作</td>
                        </tr>
                        <c:forEach items="${list }" var="l" varStatus="vs">
                        <tr>
                        	<td class="h1141">${l.code }</td>
                            <td class="h1142">${l.name }</td>
                            <td class="h1143">
                            <c:if test="${l.status==1 }" >起草</c:if>
                            <c:if test="${l.status==2 }">审核中</c:if>
                            <c:if test="${l.status==3 }">审核通过</c:if>
                            </td>
                            <td class="h1144"><fmt:formatDate value="${l.datetime }" pattern="yyyy-MM-dd"/></td>
                            <td class="h1145">
                        		<c:if test="${l.status==1 }">
                        			<a href="jia/findXinchoubiaozhunById?tab=3&id=${l.id}">修改</a>
		                            <a href="jia/delXinchoubiaozhun?id=${l.id}">删除</a>
		                            <a href="jia/findXinchoubiaozhunById?tab=3&id=${l.id}">明细</a>
                        		</c:if>
                        		<c:if test="${l.status==2 }">
                        			<a href="jia/findXinchoubiaozhunById?tab=4&fuhe=1&id=${l.id}">复核</a>
		                            <a href="jia/findXinchoubiaozhunById?tab=3&id=${l.id}">明细</a>
                        		</c:if>
                        		<c:if test="${l.status==3 }">
                        			<a href="jia/findXinchoubiaozhunById?tab=2&id=${l.id}">变更</a>
		                            <a href="jia/findXinchoubiaozhunById?tab=3&id=${l.id}">明细</a>
                        		</c:if>
                        	</td>
                            	
                        </tr>
                       
                        	</c:forEach>
                    </table>
                    <div style="width: 300px;margin-left: 240px;margin-top: 10px;">
                    	
                    	<input type="hidden" value="${page}" id="hid"/>
						<ul id="page">
						    <li><a href="jia/findXinchoubiaozhunByCondition?page=${page-1}">&laquo;</a></li>
						    <li><a href="jia/findXinchoubiaozhunByCondition?page=1">1</a></li>
						    <li><a href="jia/findXinchoubiaozhunByCondition?page=2">2</a></li>
						    <li><a href="jia/findXinchoubiaozhunByCondition?page=3">3</a></li>
						    <li><a href="jia/findXinchoubiaozhunByCondition?page=4">4</a></li>
						    <li><a href="jia/findXinchoubiaozhunByCondition?page=5">5</a></li>
						    <li><a href="jia/findXinchoubiaozhunByCondition?page=6">6</a></li>
						    <li><a href="jia/findXinchoubiaozhunByCondition?page=7">7</a></li>
						    <li><a href="jia/findXinchoubiaozhunByCondition?page=8">8</a></li>
						    <li><a href="jia/findXinchoubiaozhunByCondition?page=9">9</a></li>
						    <li><a href="jia/findXinchoubiaozhunByCondition?page=10">10</a></li>
						    <li><a href="jia/findXinchoubiaozhunByCondition?page=${page+1}">&raquo;</a></li>
						    <li><input type="text" value="" id="go" size="2" style="height: 20px;"/></li>
						    <li><input type="button" value="Go" onclick="backGo()"/></li>
						</ul>
						
                    </div>
                    <script type="text/javascript">
                    		function backGo(){
                    		var id=$("#go").val();
                    		window.location.href="findXinchoubiaozhunByCondition?page="+id;
                    	};
                    </script>
                </div>
            </div>
		
		
		
		
		
		
		
		
		</div>
	</div>

</body>
</html>
